QT += core
QT       += network xml websockets


CONFIG += c++11

TARGET = rtsp2mov

CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

unix{
DEFINES +=  LINUX WEBRTC_LINUX OS_LINUX


INCLUDEPATH += $$PWD/ \
                $$PWD/third/ffmpeg_linux/include/



LIBS += -L$$PWD/third/ffmpeg_linux/lib  \
         -Wl,-rpath=$$PWD/third/ffmpeg_linux/lib \
	-lavcodec -lavdevice -lavfilter  -lavformat -lavutil -lpostproc -lswresample -lswscale


DEPENDPATH += $$PWD/third/ffmpeg_linux/include

}


win32{
DEFINES +=  WIN32

INCLUDEPATH += $$PWD/  \
               $$PWD/third/ffmpeg/include/ \



LIBS +=  \
        $$PWD/third/ffmpeg/lib/avformat.lib \
        $$PWD/third/ffmpeg/lib/swscale.lib \
        $$PWD/third/ffmpeg/lib/avutil.lib \
        $$PWD/third/ffmpeg/lib/avcodec.lib \
        $$PWD/third/ffmpeg/lib/avfilter.lib \
        $$PWD/third/ffmpeg/lib/swresample.lib \
        $$PWD/third/ffmpeg/lib/avdevice.lib \
        $$PWD/third/ffmpeg/lib/postproc.lib \



LIBS += -luser32


}

HEADERS += \
    base/CriticalSection.h \
    base/file_dir.h \
    base/GetCPUUsage.h \
    base/Lock.h \
    base/SimpleEvent.h \
    base/SimpleThread.h \
    base/TraceLog.h \
    base/Utils.h \
    IRtspReadManager.h \
    websocket/LiveManager.h \
    websocket/websocketmanager.h \
    JsonRpc/AbstractServerHandle.h \
    JsonRpc/CmdRouter.h \
    websocket/HttpClientConnection.h \
    EventListQueue.h

SOURCES += \
    base/file_dir.cpp \
    base/Lock.cpp \
    base/SimpleEvent.cpp \
    base/SimpleThread.cpp \
    base/TraceLog.cpp \
    base/Utils.cpp \
    IRtspReadManager.cpp \
    main.cpp \
    websocket/LiveManager.cpp \
    websocket/websocketmanager.cpp \
    JsonRpc/CmdRouter.cpp \
    websocket/HttpClientConnection.cpp \
    EventListQueue.cpp








